package com.cn.jn;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.mvc.Controller;

/**
 * @author lhm 2753914576@qq.com
 * @time 2024/2/15 - 21:27
 **/
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }


    @Bean("/hello")
    public Controller hello() {
        return (request, response) -> {
            response.getWriter().write("hello, docker");
            return null;
        };
    }
}
